package com.qingcloud.adminbackend.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName TreeResult
 * @Deacription TODO
 * @Author shixiaowei
 * @Date 2021/1/15 14:03
 * @Version 1.0
 **/
@Data
public class ApiTreeNode {

    @ApiModelProperty(value = "id", example = "1")
    private String id;
    @ApiModelProperty(value = "标签", example = "1")
    private String label;
    @ApiModelProperty(value = "自定义值", example = "1", required = false)
    private Object groupId;
    @ApiModelProperty(value = "子节点", example = "1")
    private List<ApiTreeNode> children;

    public ApiTreeNode(){

    }
    public ApiTreeNode(String label) {
        this.label = label;
    }
}
